import jsonschema
schema={
    "type":"object",
    "properties":{
        "success": {"type":"boolean"},
        "code":{"type":"integer"},
        "message":{"type":"string"},
        "money":{"type":"number"},
        "address":{"type":"null"},
        "data":{
            "type":"object"
        },
        "luckNumber":{"type":"array"}
    }
}
json_data= {
    "success":True,
    "code":1000,
    "message":"操作成功",
    "money":6.66,
    "address":None,
    "data":{"name":"tom"},
    "luckNumber":[6,9,8]
}
res=jsonschema.validate(instance=json_data,schema=schema)
print(res)